package com.cqhilink.iot.jobstandardmanagement.facade.service.post;

import com.alibaba.fastjson.JSONObject;
import com.cqhilink.iot.jobstandardmanagement.facade.model.BootstrapSearchBean;
import com.cqhilink.iot.jobstandardmanagement.facade.model.Employee;
import com.cqhilink.iot.jobstandardmanagement.facade.model.Post;
import com.cqhilink.iot.jobstandardmanagement.facade.model.postVo;

import java.util.List;

/**
 * Created by zmling on 2016/11/16.
 * 岗位信息
 */
public interface JsmPostService {

    /**
     * 分页查询岗位信息
     *
     * @param bootstrapSearchBean
     * @return
     * @throws Exception
     */
    JSONObject findPostByDepId(BootstrapSearchBean bootstrapSearchBean) throws Exception;

    /**
     * 新增岗位信息
     *
     * @param post
     * @param uploadFiles
     * @param deletedFiles
     * @return
     * @throws Exception
     */
    int addPost(Post post, String uploadFiles, String deletedFiles, Employee employee) throws Exception;

    /**
     * 删除岗位信息
     *
     * @param certificate
     * @return
     */
    int deletePost(String certificate);

    /**
     * 通过Id查询岗位信息
     *
     * @param postId
     * @return
     * @throws Exception
     */
    postVo toPostView(String postId) throws Exception;

    /**
     * 修改岗位信息
     *
     * @param post
     * @param uploadFiles
     * @param deletedFiles
     * @return
     * @throws Exception
     */
    int updatePost(Post post, String uploadFiles, String deletedFiles, Employee employee) throws Exception;

    /**
     * 通过Id查询
     *
     * @param depId
     * @return
     * @throws Exception
     */
    List<postVo> findPostDepId(String depId) throws Exception;

}
